<template>
  <div>
    <div class="list">
      <ul>
        <div v-for="(item, index) in items" :key="index">
          <img :src="item.image" alt="图片">
          <li><a href="#">{{ item.info }}</a></li>
          <li>{{ item.simpleDescription }}</li>
          <p>{{ item.detailedDescription }}</p>
        </div>
      </ul>
    </div>
    <div class="checkButton">
      <button class="approve-button">通过</button>
      <button class="reject-button">拒绝</button>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const items = ref([
  { image: 'image1.jpg', info: '信息1', simpleDescription: '简单描述1', detailedDescription: '详细描述1详细描述1详细描述1详细描述1详细描述1详细描述1详细描述1详细描述1详细描述1' },
  { image: 'image2.jpg', info: '信息2', simpleDescription: '简单描述2', detailedDescription: '详细描述2' },
  { image: 'image3.jpg', info: '信息3', simpleDescription: '简单描述3', detailedDescription: '详细描述3' }
]);
</script>

<style scoped>
li {
  list-style: none;
}

.list {
  width: 100%;
  margin-top: 200px; /* 确保内容不被固定导航栏遮挡 */
  overflow-x: auto;
}

.list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list div {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  justify-content: space-between;
  background-color: #eae2e2;
}

.list img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  margin-left: 100px;
  margin-right: 15px;
  background-color: #333;
}

.list li {
  margin-right: 100px;
  font-size: 24px;
  font-weight: bold;
}

.list a {
  color: #333;
  text-decoration: none;
}

.list p {
  margin-right: 100px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 200px;
  min-width: 200px;
}

.approve-button {
  background-color: green;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  margin: 0 20px;
  border-radius: 10px;
}

.reject-button {
  background-color: red;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  margin: 0 20px;
  border-radius: 10px;
}

.checkButton {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
</style>
